<?php 
	class site
	{
		function __construct()
		{
			/*
			*	This file contains key settings to the 'Twicha' system.
			*	Most Settings you will need can be found in the getSettings() array, and each are explained.
			*	Before editting a section of this file please read the commentary of it
			*
			*/
		}
		public function getSettings()
		{
			$settings =  array( "Site" 		=> true, // Is the Site Active? If False, will display message "This site is currently down for maintence" 
									  "CookieTime" => "2592000", // How long will cookies last? Deafult: 30 Days
									  "StatsBlock" => true, // On False, will hide the stats block showing current login info. Mainly for Development use
									  "RequireLogin" => true, // If False, will not require users to login to access a page. 
									  "redirect" => true,
									  "development" => true, // Will Turn On/Off Certain Development Features (Error Reporting)
									  );
			return $settings;
		}
		public function placeSettings()
		{
			$settings = site::getSettings();
			
			if($settings["development"] ==  true)
			{
				error_reporting(E_ALL);
			}
			else
			{
				error_reporting(0);
			}
		}
		public function setConstants()
		{
			/*
			*	The following paths define the paths to folders of Twicha.
			*	
			*	Only edit the paths if you have moved directorys around. Do not edit the Names
			*
			*/
			// Directory Paths
			define( "SITE_PATH", $_SERVER["DOCUMENT_ROOT"] ."twicha/");
			define( "SITE_PATH_LIB" ,$_SERVER["DOCUMENT_ROOT"] . "twicha/lib/");
			define( "SITE_PATH_GATE" ,$_SERVER["DOCUMENT_ROOT"] . "twicha/lib/gatekeepers/");
			define( "SITE_PATH_TABLES" ,$_SERVER["DOCUMENT_ROOT"] . "twicha/lib/tables/");
			define( "SITE_PATH_COMMON" , $_SERVER["DOCUMENT_ROOT"] . "twicha/lib/common/");
			define( "SITE_PATH_INTERFACE" , $_SERVER["DOCUMENT_ROOT"] ."twicha/lib/interfaces/");
			define( "SITE_PATH_CSS" , "/twicha/inc/style/");
			define( "SITE_PATH_JS" , "/twicha/inc/js/");
			
			// Database Info
			define( "DATABASE_NAME", "twicha");
			define( "DATABASE_LOCATION", "localhost");
			define( "DATABASE_USER", "root");
			define( "DATABASE_PASSWORD", "");
												  
		}
		public function getSystemDir()
		{
			//class directories
			$directorys = array(
				'lib/',
				'lib/tables/',
				'lib/common/',
				'lib/gatekeepers/',
				'lib/modules/',
			);
			return $directorys;						
		}
		public function getClassDir()
		{
			/*
			*	The Following File Locations are Class Names -> File Names.
			*
			*	These Files are only for __autoload() to use as a back up to find classes that haven't been included
			*
			*	Do not edit these paths unless you have changed the file or class name. The Site Directory Paths can be found in settings.class.php under function setConstants()
			*/
			$classdir = array(
								// Gate Keepers
								"registration" => SITE_PATH_GATE . "gate_reg.class.php",
								"relations" => SITE_PATH_GATE . "gate_rel.class.php",
								"response" => SITE_PATH_GATE . "gate_response.class.php",
								
								// System Files ( All of these are located in the BOOT Class. You should never need to use them )
								"boot" => SITE_PATH_LIB . "boot.class.php",
								"lib" => SITE_PATH_COMMON . "library.class.php",
								"site" => SITE_PATH_COMMON . "site.class.php", // Current File you are reading
								"mySql" => SITE_PATH_COMMON . "db.class.php",
								"auth" => SITE_PATH_COMMON . "auth.class.php",
								
								// Common Files
								"nav" => SITE_PATH_COMMON .  "nav.class.php",
								"html" => SITE_PATH_COMMON . "html.class.php",
								
								// Tables
								"db_admin" => SITE_PATH_TABLES . "db_admin.class.php",
								"db_beta" => SITE_PATH_TABLES . "db_admin.class.php",
								"db_follow" => SITE_PATH_TABLES . "db_admin.class.php",
								"db_messages" => SITE_PATH_TABLES . "db_admin.class.php",
								"db_prefrences" => SITE_PATH_TABLES . "db_admin.class.php",
								"db_users" => SITE_PATH_TABLES . "db_admin.class.php",
								
								// Interfaces
								"gatekeeper" => SITE_PATH_INTERFACE . "basic.interface.php",
								);
			return $classdir;
		}
		public function getStylesheets()
		{	
			$StyleSheets = array( 1 => "style_body.css",
										2 => "style_input.css",
										3 => "style_messagebox.css",
										4 => "style_index.css");
			return $StyleSheets;
		}
		public function getJavascript()
		{
			$Javascript = array( 1 => "js_body.js",
										2 => "js_vote.js",
										3 => "js_feed.js",
										4 => "js_post.js",
										5 => "js_message_v2.js");
			return $Javascript;
		}
		//Msg Declaration
		public function getSystemMsgs()
		{
			$Msgs = Array( 1 => "You have successfully sent a message",
							 2 => "Your message has successfully been deleted",
							 3 => "Our service is currently unavailable",
							 4 => "You cannot access this page, because we don't like you",
							 5 => "Your Account has  been created",
							 6 => "An Error has occured. Please Try Agian",
							 7 => "Temporary Accounts should not logout!<br><a class=learn href='about/templogout/'> Learn More </a>",
							 8 => "You have been forced to logout by the Server",
							 9 => "You have followed that person.",
							 );
			return $Msgs;
		}
	}
	
?>